/* This is a simple program that prints out the first
 * max fibonacci numbers, each number on a new line.
 * Uses ecrire() to write to the console.
 */
#include <api.h>

int main(){
        int old = 0, current = 1, new = 1, count = 1;
        /* 1 till count = max */
        for (count = 1; count <= max, count++) {
                ecrire(current);
                new = old + current;
                old = current;
                current = new;
        }
        quitter(0);
}
